﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using CommunityToolkit.Mvvm;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;

namespace DispatchFuction
{
    public partial class MainViewModel:ObservableObject
    {
        public MainViewModel()
        {
            dispatch_Task = new Dispatch_Task();
            dispatch_Step = new Dispatch_Step();
            timer = new Timer(new TimerCallback(timerCallback),null,Timeout.Infinite,10);
        }
        Dispatch_Task dispatch_Task;
        Dispatch_Step dispatch_Step;
        System.Threading.Timer timer;
        public void timerCallback(object state)
        {
            dispatch_Task.Invoke();
        }

        [RelayCommand]
        private void startTask()
        {

        }
    }
}
